import dva from 'dva';
import './index.css';
// 引入此模块可以把地址栏上的#去掉
import { createBrowserHistory as createHistory } from 'history'

// 1. Initialize
const app = dva({
  history: createHistory(),
});


// const app = dva();

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/example').default);
// app.model(require('./models/product').default);
require("./models").default.forEach(key => app.model(key.default));

// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root');
